package com.ss.android.article.base.feature.detail2.video.a;

import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.bytedance.common.utility.UIUtils;
import com.ss.android.article.base.app.AppData;
import com.ss.android.article.base.feature.app.d.CommonImpressionAdapter;
import com.ss.android.article.base.feature.detail.model.ArticleInfo;
import com.ss.android.article.base.feature.detail.model.MixedAdsData;
import com.ss.android.article.base.feature.detail.model.PhoneAdsData;
import com.ss.android.article.base.feature.detail.model.WebInfo;
import com.ss.android.article.base.feature.detail.presenter.t;
import com.ss.android.article.base.feature.detail2.a.a.AppAdViewHolder;
import com.ss.android.article.base.feature.detail2.a.c.DetailAdGroupPicLayout;
import com.ss.android.article.base.feature.detail2.a.c.DetailAdSmallPicLayout;
import com.ss.android.article.base.feature.detail2.widget.a.DetailAdAppLayout;
import com.ss.android.article.base.feature.detail2.widget.a.DetailAdBannerLayout;
import com.ss.android.article.base.feature.detail2.widget.a.DetailAdImageLayout;
import com.ss.android.article.base.feature.detail2.widget.a.DetailAdMixBannerLayout;
import com.ss.android.article.base.feature.detail2.widget.a.DetailAdTextLinkLayout;
import com.ss.android.article.base.feature.model.Article;
import com.ss.android.article.base.feature.model.DownloadAppAd;
import com.ss.android.article.base.feature.model.VideoAlbumInfo;
import com.ss.android.b.a.AdsAppItem;
import com.ss.android.b.a.BaseAdsData;
import com.ss.android.common.ad.MobAdClickCombiner;
import com.ss.android.common.app.LifeCycleInvoker;
import com.ss.android.common.lib.MobClickCombiner;
import com.ss.android.common.util.NetworkStatusMonitor;
import com.ss.android.common.util.ToolUtils;
import com.ss.android.image.loader.ImageLoader;
import com.ss.android.image.model.ImageInfo;
import com.ss.android.newmedia.util.AppUtil;

import org.json.JSONException;
import org.json.JSONObject;

public final class l {
    public DetailAdGroupPicLayout A;
    public DetailAdBannerLayout B;
    public DetailAdTextLinkLayout C;
    public View D;
    public TextView E;
    public View F;
    public boolean G;
    public ArticleInfo H;
    public Article I;
    public int[] J;
    public CommonImpressionAdapter K;
    public int L;
    private final int M;
    private final ImageLoader N;
    private ImageView O;
    final int a;
    final int b;
    final int c;
    final int d;
    ImageLoader e;
    ImageLoader f;
    public final Activity g;
    final NetworkStatusMonitor h;
    final LayoutInflater i;
    public final LinearLayout j;
    public TextView k;
    public TextView l;
    public RelativeLayout m;
    public ViewGroup n;
    public LinearLayout o;
    public ViewGroup p;
    public LinearLayout q;
    LinearLayout r;
    public TextView s;
    public LinearLayout t;
    public DetailAdAppLayout u;
    public AppAdViewHolder v;
    public DetailAdMixBannerLayout w;
    public DetailAdImageLayout x;
    public DetailAdSmallPicLayout y;
    public com.ss.android.article.base.feature.detail2.a.c.DetailAdLargePicLayout z;

    public l(Activity activity, NetworkStatusMonitor networkStatusMonitor, LayoutInflater layoutInflater, LinearLayout arg6, View arg7, ImageLoader arg8, ImageLoader arg9, ImageLoader arg10, int arg11, int arg12, int arg13, int arg14, int arg15) {
        this.G = false;
        this.J = new int[2];
        this.g = activity;
        AppData.getInstance();
        this.i = layoutInflater;
        this.j = arg6;
        this.N = arg8;
        this.M = arg15;
        this.c = arg11;
        this.d = arg12;
        this.b = arg13;
        this.a = arg14;
        this.f = arg9;
        this.e = arg10;
        this.h = networkStatusMonitor;
        this.G = AppData.isNightMode();
        this.k = arg6.findViewById(com.ss.android.article.browser.R.id.oa);
        this.m = arg6.findViewById(com.ss.android.article.browser.R.id.ol);
        this.O = arg6.findViewById(com.ss.android.article.browser.R.id.video_end_cover_image);
        this.l = arg6.findViewById(com.ss.android.article.browser.R.id.video_title);
        this.n = arg6.findViewById(com.ss.android.article.browser.R.id.ou);
        this.o = arg6.findViewById(com.ss.android.article.browser.R.id.ov);
        this.p = arg6.findViewById(com.ss.android.article.browser.R.id.ow);
        this.q = arg6.findViewById(com.ss.android.article.browser.R.id.ox);
        this.r = arg6.findViewById(com.ss.android.article.browser.R.id.oy);
        this.s = arg6.findViewById(com.ss.android.article.browser.R.id.oz);
        this.F = arg7.findViewById(com.ss.android.article.browser.R.id.contents_wrapper);
        this.D = arg7.findViewById(com.ss.android.article.browser.R.id.sofa_layout);
        this.E = this.D.findViewById(com.ss.android.article.browser.R.id.sofa_text);
        com.ss.android.article.base.feature.detail2.config.a.b(this.j);
    }

    public final void a() {
        Object v0_1;
        Object v1 = null;
        if (this.q != null && this.q.getChildCount() > 0 && this.I != null && this.I.videoSubjectId > 0) {
            int v0 = 0;
            while (true) {
                if (v0 < this.q.getChildCount()) {
                    View v2 = this.q.getChildAt(v0);
                    if ((v2.getTag() instanceof t)) {
                        v0_1 = v2.getTag();
                    } else {
                        ++v0;
                        continue;
                    }
                } else {
                    v0_1 = v1;
                }
                break;
            }
            if (v0_1 == null) {
                return;
            }

            ((t) v0_1).b(((t) v0_1).a);
        }
    }

    public final void a(int arg2) {
        this.F.setVisibility(arg2);
    }

    protected final void a(Context arg19, BaseAdsData arg20) {
        if (arg20 != null) {
            if (arg20.adType == 1) {
                AdsAppItem.a(arg19, arg20.openUrl, arg20.pkg, arg20.downloadUrl, arg20.webUrl, arg20.id, arg20.appName, "detail_ad", null, "download_confirm", arg20.appName, "", arg20.alertText, arg20.logExtra);
            } else if (arg20.adType == 2) {
                AdsAppItem.a(arg19, arg20.openUrl, arg20.webUrl, arg20.webTitle, arg20.orientation, new AdsAppItem.b(arg19, "detail_ad", "click", arg20.id, arg20.logExtra, 1));
            }
            MobClickCombiner.onEvent(arg19, "video", "detail_selfad", this.H.itemId, 0);
        }
    }

    public final void a(ArticleInfo arg18) {
        com.ss.android.article.base.feature.detail2.video.a.e v4_3;
        long v2_6;
        t v4_2;
        Object v4_1;
        View v16;
        long v4;
        t v3_2;
        t v2_1;
        Object v3_1;
        View v3;
        View v2;
        int v11;
        if (this.H != null || arg18 == null) {
            if (this.H != null && arg18 != null && this.H.itemId != arg18.itemId) {
                v11 = 1;
            } else {
                v11 = 0;
            }
        } else {
            v11 = 1;
        }

        this.H = arg18;
        this.b(false);
        if (arg18 != null) {
            if (!android.support.design.a.isTextEmpty(arg18.alertText)) {
                this.k.setVisibility(View.VISIBLE);
                this.k.setText(arg18.alertText);
            } else {
                this.k.setVisibility(View.GONE);
            }

            int v13 = arg18.videoSubjectList.size();
            int v14 = this.o.getChildCount();
            if (v13 > 0) {
                UIUtils.setVisibility(this.n, 0);
                int v12;
                for (v12 = 0; v12 < Math.max(v14, v13); ++v12) {
                    if (v12 < v13) {
                        if (v12 < v14) {
                            v2 = this.o.getChildAt(v12);
                            v3 = v2.findViewById(com.ss.android.article.browser.R.id.divider);
                            if (v12 == 0) {
                                v3.setVisibility(View.GONE);
                            }

                            v2.setVisibility(View.VISIBLE);
                            v3_2 = (com.ss.android.article.base.feature.detail.presenter.t) v2.getTag();
                        } else {
                            View v15 = this.i.inflate(com.ss.android.article.browser.R.layout.hs, this.o, false);
                            v2 = v15.findViewById(com.ss.android.article.browser.R.id.divider);
                            if (v12 == 0) {
                                v2.setVisibility(View.GONE);
                            }

                            this.o.addView(v15, -1, -2);
                            v2_1 = new t(this.g, this.h, this.f, this.e, this.c, this.d, this.b, this.a);
                            v2_1.a(v15);
                            v15.setTag(v2_1);
                            v3_2 = v2_1;
                        }

                        if (v3_2 == null) {
                            continue;
                        }

                        Object v2_2 = arg18.videoSubjectList.get(v12);
                        v4 = this.I != null ? this.I.groupId : 0;
                        v3_2.a(((VideoAlbumInfo) v2_2), v4);
                    } else {
                        if (v12 >= v13) {
                            continue;
                        }

                        this.o.removeViews(v12, v13 - v12);
                        break;
                    }
                }
            }

            v13 = this.q.getChildCount();
            int v2_3 = arg18.relatedVideoToutiaoList.size();
            int v12 = arg18.relatedVideoSection <= 0 || arg18.relatedVideoSection >= arg18.relatedVideoToutiaoList.size() ? v2_3 : arg18.relatedVideoSection;
            v14 = com.ss.android.article.base.feature.detail2.video.a.e.a;
            int v15_1 = arg18.relatedVideoToutiaoList.size();
            if (v15_1 > 0) {
                if (v11 != 0 && v15_1 > 0 && this.H != null) {
                    if (this.K != null) {
                        this.K.f();
                        if ((this.g instanceof LifeCycleInvoker)) {
                            ((LifeCycleInvoker) this.g).unregisterLifeCycleMonitor(this.K);
                        }
                    }

                    v4 = this.H.itemId;
                    long v6 = this.H.groupItemId;
                    String v2_4 = this.I != null ? this.I.videoId : null;
                    this.K = new o(this, android.support.design.a.a(v4, v6, v2_4));
                    if ((this.g instanceof LifeCycleInvoker)) {
                        ((LifeCycleInvoker) this.g).registerLifeCycleMonitor(this.K);
                    }

                    this.K.a(v15_1, 36);
                    this.L = 8;
                }

                this.b(true);
                if (arg18.relatedVideoSection > 0 && arg18.relatedVideoSection < v15_1) {
                    this.r.setVisibility(View.VISIBLE);
                }

                for (v11 = 0; v11 < Math.max(v13, v12); ++v11) {
                    if (v11 >= v12 || v11 >= v15_1) {
                        if (v11 >= v13) {
                            continue;
                        }
                        this.q.removeViews(v11, v13 - v11);
                        break;
                    } else {
                        if (arg18.relatedVideoToutiaoList.get(v11).a != 0 && arg18.relatedVideoToutiaoList.get(v11).a != 2) {
                            if (arg18.relatedVideoToutiaoList.get(v11).a == 3) {
                                if (v11 < v13) {
                                    v2 = this.q.getChildAt(v11);
                                    v3 = v2.findViewById(com.ss.android.article.browser.R.id.divider);
                                    if (v11 == 0) {
                                        v3.setVisibility(View.GONE);
                                    }

                                    v2.setVisibility(View.VISIBLE);
                                    v3_1 = v2.getTag();
                                } else {
                                    v16 = this.i.inflate(com.ss.android.article.browser.R.layout.gh, this.q, false);
                                    v2 = v16.findViewById(com.ss.android.article.browser.R.id.divider);
                                    if (v11 == 0) {
                                        v2.setVisibility(View.GONE);
                                    }

                                    this.q.addView(v16, -1, -2);
                                    com.ss.android.article.base.feature.detail2.video.a.d v2_5 = new com.ss.android.article.base.feature.detail2.video.a.d(this.g, this.h, this.f, this.e, this.c, this.d, this.b, this.a);
                                    v2_5.a(v16);
                                    v16.setTag(v2_5);
                                    v3_1 = v2_5;
                                }

                                if (v3_1 == null) {
                                    continue;
                                }

                                ((com.ss.android.article.base.feature.detail2.video.a.e) v3_1).j = arg18.relatedVideoToutiaoList.get(v11).showTag;
                                ((com.ss.android.article.base.feature.detail2.video.a.e) v3_1).k = arg18.relatedVideoToutiaoList.get(v11).logExtra;
                                ((com.ss.android.article.base.feature.detail2.video.a.d) v3_1).a(arg18.relatedVideoToutiaoList.get(v11));
                            } else {
                                if (v11 < v13) {
                                    v2 = this.q.getChildAt(v11);
                                    v3 = v2.findViewById(com.ss.android.article.browser.R.id.divider);
                                    if (v11 == 0) {
                                        v3.setVisibility(View.GONE);
                                    }

                                    v2.setVisibility(View.VISIBLE);
                                    v4_2 = (com.ss.android.article.base.feature.detail.presenter.t) v2.getTag();
                                } else {
                                    v16 = this.i.inflate(com.ss.android.article.browser.R.layout.hs, this.q, false);
                                    this.q.addView(v16, -1, -2);
                                    v2_1 = new t(this.g, this.h, this.f, this.e, this.c, this.d, this.b, this.a);
                                    v2_1.a(v16);
                                    v16.setTag(v2_1);
                                    v4_2 = v2_1;
                                }

                                if (v4_2 == null) {
                                    continue;
                                }

                                VideoAlbumInfo v5 = arg18.relatedVideoToutiaoList.get(v11).videoAlbumInfo;
                                v2_6 = this.I != null ? this.I.groupId : 0;
                                v4_2.a(v5, v2_6);
                            }
                            continue;
                        }

                        if (v11 < v13) {
                            v2 = this.q.getChildAt(v11);
                            v3 = v2.findViewById(com.ss.android.article.browser.R.id.divider);
                            if (v11 == 0) {
                                v3.setVisibility(View.GONE);
                            }

                            v2.setVisibility(View.VISIBLE);
                            v4_3 = (com.ss.android.article.base.feature.detail2.video.a.e) v2.getTag();
                        } else {
                            v16 = this.i.inflate(com.ss.android.article.browser.R.layout.gh, this.q, false);
                            v2 = v16.findViewById(com.ss.android.article.browser.R.id.divider);
                            if (v11 == 0) {
                                v2.setVisibility(View.GONE);
                            }

                            this.q.addView(v16, -1, -2);
                            com.ss.android.article.base.feature.detail2.video.a.e v2_7 = new com.ss.android.article.base.feature.detail2.video.a.e(this.g, this.h, this.f, this.e, this.c, this.d, this.b, this.a);
                            v2_7.a(v16);
                            v16.setTag(v2_7);
                            v4_3 = v2_7;
                        }

                        if (v4_3 == null) {
                            continue;
                        }

                        v4_3.j = arg18.relatedVideoToutiaoList.get(v11).showTag;
                        Article v5_1 = arg18.relatedVideoToutiaoList.get(v11).article;
                        v2_6 = this.I != null ? this.I.groupId : 0;
                        v4_3.a(v5_1, v2_6, v14);
                        v4_3.k = arg18.relatedVideoToutiaoList.get(v11).logExtra;
                    }
                }
            } else {
                MobClickCombiner.onEvent(this.g, "video_detail", "related_video_stat", 2, 0);
            }

            this.r.setOnClickListener(new com.ss.android.article.base.feature.detail2.video.a.m(this, arg18));
            if (arg18.relatedVideoImageInfo == null || !arg18.relatedVideoImageInfo.isValid()) {
                UIUtils.setVisibility(this.m, 8);
            } else {
                UIUtils.setVisibility(this.m, 0);
                ImageInfo v2_8 = arg18.relatedVideoImageInfo;
                v2_3 = this.O == null || v2_8 == null || !v2_8.isValid() ? -1 : this.M * v2_8.mHeight / v2_8.mWidth;
                if (v2_3 > 0) {
                    ViewGroup.LayoutParams v3_4 = this.O.getLayoutParams();
                    if (v3_4 != null) {
                        v3_4.height = v2_3;
                        this.O.setLayoutParams(v3_4);
                    }
                }

                if (this.N != null) {
                    this.N.loadImage(this.O, arg18.relatedVideoImageInfo, false);
                }

                this.l.setText(arg18.relatedVideoTitle);
                this.m.setOnClickListener(new n(this, arg18));
            }

            com.ss.android.article.base.feature.detail.model.ArticleInfo.a v12_1 = arg18.aa;
            if (v12_1 != null) {
                if (this.t == null) {
                    this.t = new LinearLayout(this.g);
                    this.t.setOrientation(LinearLayout.VERTICAL);
                } else {
                    this.t.removeAllViews();
                }

                this.j.removeView(this.t);
                this.j.addView(this.t);
                LinearLayout.LayoutParams v13_1 = new LinearLayout.LayoutParams(-1, -2);
                v13_1.bottomMargin = ((int) UIUtils.dp2px(this.g, 8f));
                LinearLayout.LayoutParams v14_1 = new LinearLayout.LayoutParams(-1, -2);
                v14_1.bottomMargin = ((int) UIUtils.dp2px(this.g, 8f));
                v14_1.topMargin = ((int) UIUtils.dp2px(this.g, 8f));
                v14_1.leftMargin = ((int) UIUtils.dp2px(this.g, 15f));
                v14_1.rightMargin = ((int) UIUtils.dp2px(this.g, 15f));
                DownloadAppAd v6_1 = v12_1.f;
                if (v6_1 != null && (v6_1.isValid())) {
                    if ((ToolUtils.isAppInstalled(this.g, v6_1.pkg)) && (v6_1.a(this.g))) {
                        JSONObject v10 = new JSONObject();
                        try {
                            v10.put("log_extra", v6_1.logExtra);
                        } catch (JSONException v2_9) {
                            v2_9.printStackTrace();
                        }

                        MobAdClickCombiner.onAdEvent(this.g, "detail_ad", "hide", v6_1.id, 0, v10, 1);
                    } else {
                        if (v6_1.displaySubtype == 0) {
                            this.u = new DetailAdAppLayout(this.g);
                            this.u.setLayoutParams(((ViewGroup.LayoutParams) v14_1));
                            this.t.addView(this.u);
                            this.v = new AppAdViewHolder(this.g);
                            this.v.initView(this.u);
                            this.v.a(v6_1);
                        } else if (v6_1.displaySubtype == 1) {
                            this.y = new DetailAdSmallPicLayout(this.g, (byte) 0);
                            this.y.a(((BaseAdsData) v6_1));
                            this.y.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                            this.t.addView(this.y);
                        } else if (v6_1.displaySubtype != 2) {
                            if (v6_1.displaySubtype == 3) {
                                this.z = new com.ss.android.article.base.feature.detail2.a.c.DetailAdLargePicLayout(this.g, (byte) 0);
                                this.z.a(((BaseAdsData) v6_1));
                                this.z.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                                this.t.addView(this.z);
                            } else if (v6_1.displaySubtype == 4) {
                                this.A = new DetailAdGroupPicLayout(this.g, (byte) 0);
                                this.A.setAdData(((BaseAdsData) v6_1));
                                this.A.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                                this.t.addView(this.A);
                            } else {
                                v6_1.K = false;
                            }
                        }
                        AppUtil.a(v6_1.trackUrlList, this.g);
                    }
                }
                if (v12_1.a != null && (v12_1.a.isValid())) {
                    MixedAdsData v2_10 = v12_1.a;
                    if (v2_10.g == 3) {
                        if (v2_10.p) {
                            this.z = new com.ss.android.article.base.feature.detail2.a.c.DetailAdLargePicLayout(this.g, (byte) 0);
                            this.z.a(v12_1.a);
                            this.z.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                            this.t.addView(this.z);
                        } else {
                            this.w = new DetailAdMixBannerLayout(this.g);
                            this.w.setLayoutParams(((ViewGroup.LayoutParams) v14_1));
                            this.t.addView(this.w);
                            this.w.a(v12_1.a);
                            this.w.a(v12_1.a.d, v12_1.a.e, v12_1.a.f);
                            this.w.setVisibility(View.VISIBLE);
                            this.w.setOnClickListener(new p(this));
                        }
                    } else if (v2_10.g == 1) {
                        this.y = new DetailAdSmallPicLayout(this.g, (byte) 0);
                        this.y.a(this.H.y);
                        this.y.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                        this.t.addView(this.y);
                    } else if (v2_10.g != 2) {
                        if (v2_10.g == 4) {
                            this.A = new DetailAdGroupPicLayout(this.g, (byte) 0);
                            this.A.setAdData(this.H.y);
                            this.A.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                            this.t.addView(this.A);
                        } else {
                            v12_1.a.K = false;
                        }
                    }
                }

                if (v12_1.b != null && (v12_1.b.isValid())) {
                    PhoneAdsData v2_11 = v12_1.b;
                    if (v2_11.displaySubType == 1) {
                        this.y = new DetailAdSmallPicLayout(this.g, (byte) 0);
                        this.y.a(this.H.z);
                        this.y.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                        this.t.addView(this.y);
                    } else if (v2_11.displaySubType != 2) {
                        if (v2_11.displaySubType == 3) {
                            this.z = new com.ss.android.article.base.feature.detail2.a.c.DetailAdLargePicLayout(this.g, (byte) 0);
                            this.z.a(this.H.z);
                            this.z.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                            this.t.addView(this.z);
                        } else if (v2_11.displaySubType == 4) {
                            this.A = new DetailAdGroupPicLayout(this.g, (byte) 0);
                            this.A.setAdData(this.H.z);
                            this.A.setLayoutParams(((ViewGroup.LayoutParams) v13_1));
                            this.t.addView(this.A);
                        } else {
                            v12_1.b.K = false;
                        }
                    }
                }

                if (v12_1.d != null && (v12_1.d.isValid())) {
                    this.x = new DetailAdImageLayout(this.g);
                    this.x.setLayoutParams(((ViewGroup.LayoutParams) v14_1));
                    this.t.addView(this.x);
                    this.x.setImageUrl(v12_1.d.image, v12_1.d.imageWidth, v12_1.d.imageHeight);
                    this.x.setText(v12_1.d.label);
                    this.x.setVisibility(View.VISIBLE);
                    this.x.setOnClickListener(new com.ss.android.article.base.feature.detail2.video.a.q(this));
                }

                if (v12_1.mBannerAdsData == null) {
                } else if (!v12_1.mBannerAdsData.isValid()) {
                } else {
                    this.B = new DetailAdBannerLayout(this.g);
                    this.B.setLayoutParams(((ViewGroup.LayoutParams) v14_1));
                    this.t.addView(this.B);
                    this.B.a(v12_1.mBannerAdsData.image, v12_1.mBannerAdsData.imageWidth, v12_1.mBannerAdsData.imageHeight);
                    this.B.setTitleText(v12_1.mBannerAdsData.title);
                    this.B.setDescText(v12_1.mBannerAdsData.description);
                    this.B.setLabelText(v12_1.mBannerAdsData.label);
                    this.B.setVisibility(View.VISIBLE);
                    this.B.setOnClickListener(new r(this));
                }
            }

            WebInfo v2_12 = arg18.mWebInfo;
            if (v2_12 == null) {
                return;
            }

            this.j.removeView(this.C);
            this.C = new DetailAdTextLinkLayout(this.g);
            LinearLayout.LayoutParams v3_5 = new LinearLayout.LayoutParams(-1, -2);
            v3_5.bottomMargin = ((int) UIUtils.dp2px(this.g, 8f));
            v3_5.topMargin = ((int) UIUtils.dp2px(this.g, 8f));
            v3_5.rightMargin = ((int) UIUtils.dp2px(this.g, 15f));
            v3_5.leftMargin = ((int) UIUtils.dp2px(this.g, 15f));
            this.C.setLayoutParams(((ViewGroup.LayoutParams) v3_5));
            this.j.addView(this.C);
            this.C.setTitleText(v2_12.title);
            this.C.setVisibility(View.VISIBLE);
            this.C.setTitleOnClickListener(new s(this, v2_12));
        }
    }

    public final void a(boolean visible) {
        D.setVisibility(visible ? View.VISIBLE : View.GONE);
    }

    private void b(boolean visible) {
        UIUtils.setVisibility(this.p, visible ? View.VISIBLE : View.GONE);
    }
}

